/**
 * 
 * 广州锐鹏计算机科技有限公司（www.ruipengkj.com）
 * 
 * 
 * Copyright (c) 2011-2012 RUIPENGKJ.Co.Ltd. All rights reserved.
 * 
 * */
package com.ruipengkj.bean;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * 说明：
 * Entity Name 单据商品说明
 * @Author：黄盛强
 * @Date：2012-04-11
 */
@Entity
@Table(name="ruipeng_tb_TBillDetailDes")
public class TBillDetailDes implements Serializable{

	private static final long serialVersionUID = 1L;
	
	private int id;//明细编号CHAR(15)
	
	private String Des;//商品说明 VARCHAR(512)
	
	private TBillDetail TBillDetail;//单据商品明细
	
	@Id
	@GeneratedValue
	@Column(name = "id")
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	@Column(name = "Des",length=512)
	public String getDes() {
		return Des;
	}

	public void setDes(String des) {
		Des = des;
	}
	
	@ManyToOne
	@JoinColumn(name="DetailID")
	public TBillDetail getTBillDetail() {
		return TBillDetail;
	}

	public void setTBillDetail(TBillDetail tBillDetail) {
		TBillDetail = tBillDetail;
	}

	@Override
	public String toString() {
		return "TBillDetailDes [Des=" + Des + ", TBillDetail=" + TBillDetail
				+ ", id=" + id + "]";
	}
}
